<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.min.js"></script>
  </head>
  <body>
    <!-- <a href="#">发布</a> -->
  </body>
  <script>
    let AJAX = new XMLHttpRequest();
    let obj;
    let URL =
      // "https://api5.hanfuhui.com/Product/GetProductListPublic?count=20&page=1";
      "https://jx.xuzhixiang.top/ap/api/todos/readlist.php?pagenum=1&pagesize=20";
    // `https://api.liumingye.cn/m/api/search?`;
    AJAX.open("GET", URL);
    AJAX.send();
    AJAX.onload = () => {
      if (AJAX.status == 200) {
        // console.log(JSON.parse(AJAX.responseText));
        obj = _.cloneDeep(JSON.parse(AJAX.responseText));
        console.log(obj);
      }
    };
  </script>
</html>
